package in.equilibr.ingredients.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Index;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.Store;

@Entity
@Indexed(index="hibernate/index")
@Table(name = "FoodLog")
public class FoodLog {
	@Id
	@GeneratedValue
	@Column(name = "ID")
	private Integer id;

	@Field(index=Index.TOKENIZED, store=Store.NO)
	@Column(name = "Author")
	private String author;

	@Column(name = "Datetime")
	private String datetime;

	@Column(name = "Ingredient")
	private String ingredient;
	
	@Column(name = "Comment")
	private String comment;
	
	@Column(name = "Mood")
	private String mood;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getDatetime() {
		return datetime;
	}

	public void setDatetime(String datetime) {
		this.datetime = datetime;
	}

	public String getIngredient() {
		return ingredient;
	}

	public void setIngredient(String ingredient) {
		this.ingredient = ingredient;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getMood() {
		return mood;
	}

	public void setMood(String mood) {
		this.mood = mood;
	}

}

